package cn.samler.shopapi.Service;

import cn.samler.shopapi.Entity.Address;
import cn.samler.shopapi.Entity.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface AddressService {
    List<Address> getAddressAll(User user);

    Address getAddressById(User user, int id);

    boolean updateAddress(User user, Address address);

    boolean insertAddress(User user, Address address);

    boolean deleteAddress(User user, int id);

    boolean setDefaultAddress(User user, int id);
}
